<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath }"></c:set>
<!DOCTYPE html>
<html lang="en">

<c:import url="header.jsp"></c:import>

    <body data-id="${report.report_id }" data-content-id="${report.report_content.content_id }">

        <div id="wrapper">

            <c:import url="nav.jsp"></c:import>

                <div id="page-wrapper">
                    <div class="col-md-10 container">
                        <h2 class="title text-center">往期赛事编辑</h2>
                        <form>
                            <div class="form-group">
                                <label>标题</label>
                                <input class="form-control" id="name" value="${report.report_name }">
                            </div>
                            <div id="match_cover">
                                    <label class="title" for="cover">比赛封面</label>
                                    <div class="btn btn-primary">
                                        <input type="file" class="file-hide" id="cover"> 上传图片
                                    </div>
                                    <div class="imgPreview">
                                    	<c:if test="${!empty(report.cover)}" >
                                    		<img src="${report.cover }" >
                                    	</c:if>
                                    </div>
                                </div>
                            <div class="form-group">
                                <label>内容</label>
                                <textarea id="report" class="form-control">
                                	${report.report_content.content }
                                </textarea>
                            </div>
                        </form>
                        <button type="submit" class="btn btn-primary" id="submit-btn">提交</button>
                    </div>
                </div>
                <!-- /#page-wrapper -->
        </div>

        <!-- /#wrapper -->
        <!-- jQuery -->
         <c:import url="footer.jsp"></c:import>
         	<script src="${ctx }/js/fileReader.js"></script>
            <script src="${ctx }/js/report.js"></script>
    </body>

</html>